/**
 * Created by lenovo on 2019/4/11.
 */
var isOpen = false;
var oldName = "";
var oldSelectdId = "";
function showSecondMenu(val){
    var theId = val
    if(isOpen && theId == oldName){
        document.getElementById(theId).style.display = "none";
        isOpen = false;
    }
    else if(isOpen && theId != oldName){
        document.getElementById(oldName).style.display = "none";
        document.getElementById(theId).style.display = "block";
        oldName = theId;
    }
    else {
        document.getElementById(theId).style.display = "block";
        isOpen = true;
        oldName = theId;
    }
}

function selectSecondMenu(theSelectId){
    if(oldSelectdId != ""){
        document.getElementById(oldSelectdId).classList.remove('efbactive');
    }
    document.getElementById(theSelectId).classList.add('efbactive');
    oldSelectdId = theSelectId;
}